package com.training.java.corejava.interfacedemo;

public class Dog implements Animal 
{
	private String color ;
	private String size;
	private String food;
	private String soundProduced;

	Dog(String color,String size,String food,String soundProduced)
	{
		this.food=food;
		this.color=color;
		this.size=size;
		this.soundProduced=soundProduced;
	}
	
	public void eat()
	{
		//food=dogFood;
	   System.out.println("Dog eats dog food." + food);	
	}
	
	public void walk()
	{
	System.out.println("Dogs run fast ");
		
	}
	
	public void makeSound()
	{
		//soundProduced=sound;
		System.out.println("Dog says: " + soundProduced);
	}
	

}
